package bai6.model;

import java.text.ParseException;

public class People {
	private int id;
	private String name;
	private int luong;
	
	public People(int i,String a){
		id=i;
		name=a;
	}
	public People(int i,String a,int b){
		id=i;
		name=a;
		luong=b;
	}
	
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public int getLuong() throws ParseException {
		return luong;
	}
	public void setLuong(int luong) {
		this.luong = luong;
	}
	
	public void display() throws ParseException{
		System.out.println("Id: "+id);
		System.out.println("Name: "+name);
		System.out.println("Luong co ban: " +luong);
	}
}
